<template>
	<view>
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center fuwujifen_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub fuwujifen_fd0_0'>
					<view class='flex flex-wrap align-center fuwujifen_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  fuwujifen_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='fuwujifen_fd0_0_c1_c0'>服务积分</text>
					</view>
					<view class='flex flex-wrap align-center justify-end fuwujifen_fd0_0_c0'
						@tap.stop="pickerDiy2131659088796281 = true">
						<text class='fuwujifen_fd0_0_c2_c0'>筛选</text>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center fuwujifen_flex_1">
				<view class='flex flex-wrap align-center fuwujifen_fd1_0'>
					<view class='flex flex-wrap align-center justify-between fuwujifen_fd1_0_c0'>
						<text class='fuwujifen_fd1_0_c0_c0'>姓名：</text>
						<text class='fuwujifen_fd1_0_c0_c1'>{{infoMesg.nickname}}</text>
					</view>
					<view class='flex flex-wrap align-center justify-between fuwujifen_fd1_0_c1'>
						<text class='fuwujifen_fd1_0_c0_c0'>时间：</text>
						<text class='fuwujifen_fd1_0_c0_c1'>2023年</text>
					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center fuwujifen_flex_2">
				<view class='flex flex-wrap align-center justify-between fuwujifen_fd2_0'
					v-for="(item,index) in jifenArr" :key="index" @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/mine/pointsDetails/pointsDetails`">
					<view class='flex flex-direction flex-wrap align-stretch'>
						<text class='fuwujifen_fd2_0_c0_c0'>{{item.create_time | getNineTenthChars}}月份积分</text>
						<text class='fuwujifen_fd2_0_c0_c1'>{{item.create_time}}</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='fuwujifen_fd2_0_c0_c0'>{{item.change_money}}</text>
					</view>
				</view>
				<view class="flex justify-center" v-if="jifenArr.length==0" style="width: 100%;">
					<fu-empty-ui></fu-empty-ui>
				</view>
			</view>
			<!---flex布局flex布局结束-->
		</view>

		<benben-picker ref="benbenWritePickerCodepicker6" :visible.sync="pickerDiy2131659088796281"
			:value.sync='departure_date' mode='range' :mask-show='true' :timeout='true' :picker-height='88'
			:current='true' start-year='1990' end-year='2050' @change="changedate">
			<template #picker-header>
				<view class='flex flex-wrap align-center justify-between myInformation_picker4_0'>
					<text class='myInformation_picker4_0_c0'
						@tap="$refs.benbenWritePickerCodepicker6.cancel()">取消</text>
					<text class='myInformation_picker4_0_c1'>选择时间</text>
					<text class='myInformation_picker4_0_c2'
						@tap="$refs.benbenWritePickerCodepicker6.pickerConfirm()">确定</text>
				</view>
			</template>
		</benben-picker>
	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				pickerDiy2131659088796281: false,
				departure_date: '',
				infoMesg: {},
				jifenArr: [],
				start_time: '',
				end_time: '',
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {
			this.getPersonalInfo()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			changedate(e){
				let value = e.value.split('至')
				this.start_time = value[0]
				this.end_time = value[1]
				this.fuwujifenList()
			},
			getPersonalInfo() {
				this.$api.post('/m6752/5c78c4772da97').then(res => {
					if (res.data.code == 1) {
						this.infoMesg = res.data.data
					} else {
						this.$message.info(res.data.msg)
					}
				})
				this.fuwujifenList()
			},
			fuwujifenList() {
				uni.showLoading({
					title:'加载中'
				})
				this.$api.post('/m6752/64145f67a43bf', {
					page: 1,
					list_rows: 999,
					type: 0,
					start_time: this.start_time,
					end_time: this.end_time
				}).then(res => {
					uni.hideLoading()
					if (res.data.code == 1) {
						this.jifenArr = res.data.data.data
					}
				})
			},
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;
	}

	.myInformation_picker4_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		background-size: 100% !important;
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 100rpx;
		border-radius: 25rpx 25rpx 0rpx 0rpx;
		background-size: 100% auto !important;
	}

	.myInformation_picker4_0_c0 {
		font-size: 32rpx;
		font-weight: 400;
		color: #BFBFBF;
	}

	.myInformation_picker4_0_c1 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333333;
	}

	.myInformation_picker4_0_c2 {
		color: #FE5300;
		font-size: 32rpx;
		font-weight: 400;
	}

	.fuwujifen_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.fuwujifen_fd0_0_c2_c0 {
		font-size: 32rpx;
		color: #333;
		font-weight: 500;
	}

	.fuwujifen_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 50rpx;
	}

	.fuwujifen_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.fuwujifen_fd0_0_c0 {
		width: 120rpx;
	}

	.fuwujifen_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.fuwujifen_flex_1 {
		padding: 0rpx 24rpx 0rpx 24rpx;
	}

	.fuwujifen_fd1_0_c1 {
		width: 100%;
		margin: 32rpx 0rpx 0rpx 0rpx;
	}

	.fuwujifen_fd1_0_c0_c1 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 400;
	}

	.fuwujifen_fd1_0_c0_c0 {
		color: #666666;
		font-size: 32rpx;
		font-weight: 400;
	}

	.fuwujifen_fd1_0_c0 {
		border-bottom: 1px solid #eee;
		width: 100%;
		padding: 0rpx 0rpx 32rpx 0rpx;
	}

	.fuwujifen_fd1_0 {
		background: #FFFFFF;
		width: 100%;
		border-radius: 16rpx;
		margin: 24rpx 0rpx 0rpx 0rpx;
		padding: 32rpx 24rpx 32rpx 24rpx;
	}

	.fuwujifen_flex_2 {
		padding: 0rpx 24rpx 0rpx 24rpx;
	}

	.fuwujifen_fd2_0_c0_c1 {
		color: #999999;
		font-size: 24rpx;
		font-weight: 400;
		margin: 20rpx 0rpx 0rpx 0rpx;
	}

	.fuwujifen_fd2_0_c0_c0 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 500;
	}

	.fuwujifen_fd2_0 {
		background: #FFFFFF;
		width: 100%;
		border-radius: 16rpx;
		margin: 24rpx 0rpx 0rpx 0rpx;
		padding: 32rpx 24rpx 32rpx 24rpx;
	}
</style>